import BasicLayout from '@/layouts/BasicLayout/index.vue'
import { RouteRecordRaw } from 'vue-router'

// 表格路由
export const table: Array<RouteRecordRaw> = [
  {
    path: '/table',
    redirect: '/table/ordinary',
    component: BasicLayout,
    meta: {
      title: '超级表格',
      isShow: true,
      icon: 'TableOutlined'
    },
    children: [
      {
        path: '/table/ordinary',
        name: 'ODrdinaryTable',
        component: () => import('@/views/table/ordinary-table/index.vue'),
        meta: {
          title: '普通表格组件',
          isShow: true,
          icon: 'AppstoreFilled'
        }
      },
      {
        path: '/table/operation',
        name: 'OPTable',
        component: () => import('@/views/table/operation-table/index.vue'),
        meta: {
          title: '操作表格组件',
          isShow: true,
          icon: 'AppstoreFilled'
        }
      }
    ]
  }
]
